package com.lovo.jpa.controller;

import com.lovo.jpa.dao.IStudentDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class StudentController {
    @Autowired
    IStudentDao studentDao;

    @RequestMapping("findStuByTeacherName")
    public Object findStuByTeacherName(){

        return studentDao.findByTeacherName("陈老师");
    }
    @RequestMapping("findStuMapByTeacherName")
    public Object findStuMapByTeacherName(){
        return studentDao.findStuMapByTeacherName("陈老师");
    }
}
